/*
 * ========================================================
 * Copyright(c) 2014 杭州龙骞科技-版权所有
 * ========================================================
 * 本软件由杭州龙骞科技所有, 未经书面许可, 任何单位和个人不得以
 * 任何形式复制代码的部分或全部, 并以任何形式传播。
 * 公司网址
 * http://www.hzdracom.com/
 * ========================================================
 */
package logic.constants;

/**
 * @Project： Lqyd_Android
 * @Title：DefaultConstant
 * @Description：
 * @Author：wayne
 * @Date：2014年8月11日上午11:51:01
 */
public class DefaultConsts
        implements
        NoFormateConsts {
    /**
     * 老用户
     */
    public static final int OLD_USER_CODE = 1000;
    /**
     * 新用户
     */
    public static final int NEW_USER_CODE = 2101;
    /**
     * 设置密码超时
     */
    public static final int TIMEOUT_CODE = 2102;

    /**
     * 记录最后一次退出的时间
     */
    public static long lastRunBackTime = 0;
    /**
     * 帐号异常登录状态码
     */
    public final static int EXCEPTION_LOGIN_CODE = 1003;
    public final static String EXCEPTION_LOGIN_STRING = "qysw_exception_login_string";
    /**
     * 必填参数存在空值状态码
     */
    public final static int PARAMS_EMPTY_CODE = 1001;
    public final static String PARAMS_EMPTY_STRING = "qysw_params_empty_string";

    public final static String ADD_NOTIFICATION_ID_STRING = "qysw_add_notification_id_string";
    public final static String NOTIFICATION_ID = "notification_id";
    public final static String LAST_PUSH_MESSAGE_ID = "last_push_message_id";

    public final static int MESSAGE_NOTIFICATION_FLAG = 0;
    public final static int DOWNLOAD_NOTIFICATION_FLAG = 1;

    public final static int UPDATEUI_START = 100;

    public final static int UPDATEUI_SPLASH_DELAY_MILLIS = UPDATEUI_START + 1;
    public final static int ADD_USER_FINISH = UPDATEUI_SPLASH_DELAY_MILLIS + 1;
    public final static int ADD_USER_FAIL = ADD_USER_FINISH + 1;
    public final static int GET_USER_FINISH = ADD_USER_FAIL + 1;
    public final static int GET_USER_FAIL = GET_USER_FINISH + 1;

    public final static int UPDATEUI_FROM_NEWS_TODETAIL = GET_USER_FAIL + 1;
    public final static int UPDATEUI_BOOKSHELF_BOOKS_OK = UPDATEUI_FROM_NEWS_TODETAIL + 1;
    public final static int DELETE_BOOKSHELF_BOOKS_OK = UPDATEUI_BOOKSHELF_BOOKS_OK + 1;
    public final static int UPDATEUI_ADD_BOOK_SHELF_BOOKS = DELETE_BOOKSHELF_BOOKS_OK + 1;
    /**
     * 添加书签或笔记
     */
    public final static int UPDATEUI_ADD_BOOK_ANNOATION = UPDATEUI_ADD_BOOK_SHELF_BOOKS + 1;
    /**
     * 渲染看书界面
     */
    public final static int UPDATEUI_READING_BOOK = UPDATEUI_ADD_BOOK_ANNOATION + 1;
    /**
     * page页面显示时的状态码
     */
    public final static int PAGE_ONRESUME_CODE = UPDATEUI_READING_BOOK + 1;
    /**
     * 消息未读数改变状态码
     */
    public final static int MESSAGE_UNREAD_CHANGE_CODE = PAGE_ONRESUME_CODE + 1;
    /**
     * 通知消息中心刷新数据状态码
     */
    public final static int MESSAGE_REFRESH_CODE = MESSAGE_UNREAD_CHANGE_CODE + 1;
    /**
     * 产品更新
     */
    public final static int UPDATEUI_GETVERSIONINFO_OK = MESSAGE_REFRESH_CODE + 1;
    public final static int UPDATEUI_GETVERSIONINFO_ERROR = UPDATEUI_GETVERSIONINFO_OK + 1;
    /**
     * 我的笔记获取笔记
     */
    public final static int UPDATEUI_ALL_BOOK_NOTE = UPDATEUI_GETVERSIONINFO_ERROR + 1;
    /**
     * 单本书的笔记
     */
    public final static int UPDATEUI_GETONEBOOK_BOOKNOTES = UPDATEUI_ALL_BOOK_NOTE + 1;
    /**
     * 最近阅读同步完成
     */
    public final static int UPDATEUI_SYNCBOOKS_FINISH = UPDATEUI_GETONEBOOK_BOOKNOTES + 1;

    public final static int LOGIN_OK = UPDATEUI_SYNCBOOKS_FINISH + 1;
    public final static int UPDATEUI_ACTIVATE_FINISH = LOGIN_OK + 1;

    /**
     * 电子券激活页面返回结果标示
     */
    public final static int ACTIVITYRESULT_BOOKTICKET = UPDATEUI_ACTIVATE_FINISH + 1;
    /**
     * 电子券激活后的登录页面返回结果标示
     */
    public final static int ACTIVITYRESULT_BOOKTICKETLOGIN = ACTIVITYRESULT_BOOKTICKET + 1;
    /**
     * 电子券激活流程到找回密码页面
     */
    public final static int GO_GETPWD = ACTIVITYRESULT_BOOKTICKETLOGIN + 1;
    /**
     * 电子券激活流程到登录页面
     */
    public final static int GO_LOGIN = GO_GETPWD + 1;
    public final static int GO_BOOKTICKET = GO_LOGIN + 1;
    public final static int GO_NEW_LOGIN = GO_BOOKTICKET + 1;
    public final static int SHOW_DIALOG = GO_NEW_LOGIN + 1;
    /**
     * 图集请求后刷新页面
     */
    public final static int SHOW_ATLAS_DETAIL_FROM_ENTERPRISE = SHOW_DIALOG + 1;
    public final static int SHOW_ATLAS_DETAIL_FROM_ATLAS = SHOW_ATLAS_DETAIL_FROM_ENTERPRISE + 1;
    public final static int SHOW_ATLAS_THUMBNAIL = SHOW_ATLAS_DETAIL_FROM_ATLAS + 1;

    public final static int ATLAS_UPDATEUI = SHOW_ATLAS_THUMBNAIL + 1;
    /****
     * 评论更新UI
     ********/
    public final static int COMMENT_LIST_UPDATEUI = ATLAS_UPDATEUI + 1;

    public final static int COMMENT_SUBMIT_SUCCESS = COMMENT_LIST_UPDATEUI + 1;
    public final static int COMMENT_SUBMIT_ERROR = COMMENT_SUBMIT_SUCCESS + 1;
    public final static int REFRESH_TRAINEXAM = COMMENT_SUBMIT_ERROR + 1;
    public final static int COMMENT_SUBMIT_BACK = REFRESH_TRAINEXAM + 1;

    /********
     * 电商平台 start
     ***********/
    public final static int ECOMMERCE_TAG_ADDRESS_EDIT_UPDATE = REFRESH_TRAINEXAM + 1;
    /******** 电商平台 end *************/

    /********
     * 新版互动中心 start
     *************/
    public final static int START_PUBLISH_THEME_ACTIVITY = ECOMMERCE_TAG_ADDRESS_EDIT_UPDATE + 1;
    /********
     * 新版互动中心 end
     *************/
    /////////翠庄点餐首页url地址跳转
    public final static int ORDER_INDEX_SHOW_DETAIL_URL = START_PUBLISH_THEME_ACTIVITY + 1;
    //翠庄首页获取菜品列表
    public final static int ORDER_INDEX_FOOD_LIST = ORDER_INDEX_SHOW_DETAIL_URL + 1;

    public final static int UPDATEUI_SPLASH_OK = ORDER_INDEX_FOOD_LIST + 1;
    public final static int UPDATEUI_SPLASH_ERROE = UPDATEUI_SPLASH_OK + 1;
    public final static int UPDATEUI_FROM_SHARE_TODETAIL = UPDATEUI_SPLASH_ERROE + 1;
    public final static int GO_BOOKDETAIL = UPDATEUI_FROM_SHARE_TODETAIL + 1;
    /**
     *  开始定位
     */
    public final static int MSG_LOCATION_START = GO_BOOKDETAIL+1;
    /**
     * 定位完成
     */
    public final static int MSG_LOCATION_FINISH = MSG_LOCATION_START+1;
    /**
     * 停止定位
     */
    public final static int MSG_LOCATION_STOP= MSG_LOCATION_FINISH+1;
    /**
     * 出差、请假理由
     */
    public final static int MSG_OUT_REMARK= MSG_LOCATION_STOP+1;
    public final static int MSG_LEAVE_REMARK= MSG_OUT_REMARK+1;
    public final static int MSG_OTHER_REMARK= MSG_LEAVE_REMARK+1;
    public final static int MSG_OUT_BACKREMARK= MSG_OTHER_REMARK+1;
    public final static int MSG_LEAVE_BACKREMARK= MSG_OUT_BACKREMARK+1;
    public final static int MSG_OTHER_BACKREMARK= MSG_LEAVE_BACKREMARK+1;
    /*************************** PersonalInfoActivity UPDATEUI START *********************************/

    /***************************
     * PersonalInfoActivity UPDATEUI END
     ***********************************/
    public final static int PERSONAL_UPDATEUI_START = 1000;
    public final static int PERSONAL_UPDATEUI_FACE_UPDATE_HEAD = PERSONAL_UPDATEUI_START + 1;
    public final static int PERSONAL_UPDATEUI_USERINFO_SEX = PERSONAL_UPDATEUI_FACE_UPDATE_HEAD + 1;
    public final static int PERSONAL_UPDATEUI_USERINFO_BIRTHDAY = PERSONAL_UPDATEUI_USERINFO_SEX + 1;

    /*************************************
     * 常量
     *****************************************/
    public static final String read_news_url_s = "read_news_url_s";
    /**
     * 企业专区：获取员工必读的栏目类型
     */
    public static final String TYPE_EMPLOYEES_MUST = "1";
    /**
     * 消息位置类型：消息中心
     */
    public static final String TYPE_POSITION_MESSAGECENTER = "4";
    /**
     * 消息来源类型：企业消息
     */
    public static final String TYPE_WRITESOURCE_ENTERPRISE = "1";
    /**
     * 消息来源类型：系统消息
     */
    public static final String TYPE_WRITESOURCE_SYSTEM = "2";

    /**
     * 消息来源类型：系统消息和企业消息
     */
    public static final String TYPE_WRITESOURCE_ALL = "";
    /**
     * 默认一页数据的条数
     */
    public static final int DEFAULT_PAGE_LENGTH = 20;
    /**
     * Banner切换间隔(毫秒)
     */
    public static final int BANNER_CHANGE_TIME = 3000;
    /**
     * Banner默认宽度
     */
    public static int BANNER_DEFAULT_WIDTH;
    /**
     * Banner默认高度
     */
    public static int BANNER_DEFAULT_HIGHT;
    public final static int DB_VERSION = 10;
    public final static int CONTACTS_DB_VERSION = 1;
    public final static String DB_NAME = "qy.db";
    public final static String CONTACTS_DB_NAME = "qy_contacts.db";
    public static final String TAG = "QY";
    public static final String OK = "ok";

    public static final String ok_b = "ok_booloean";
    public static final String title_s = "title";
    public static final String req_url_s = "req_url";
    public static final String share_url = "share_url";
    public static final String share_title = "share_title";
    public static final String share_img = "share_img";
    public static final String share_intro = "share_intro";
    public static final String message_content_s = "message_content";
    public static final String message_send_id = "message_send_id";
    public static final String message_id = "message_id";
    public static final String message_type = "message_type";
    public static final String book_name = "book_name";
    public static final String book_contentId_s = "book_id";
    public static final String db_id_s = "db_id";
    public static final String chapterId_index_i = "chapterIdIndex";
    public static final String chapterId_current_i = "chapterIdCurrent";
    public static final String from_page = "frompage";

    public static final String RESULT_CODE = "resultCode";
    public static final String RESULT_MESSAGE = "resultMessage";
    public static final String CURR_ACCOUNT = "currAccount";

    public static final String FROM_TYPE = "fromType";
    public static final String CURR_CARD = "currCard";
    public static final String CURR_PASSWORD = "currPassword";

    /**
     * 从登陆页面到电子券激活
     */
    public static final int TAG_LOGIN = 0;
    /**
     * 从书券记录到电子券激活
     */
    public static final int TAG_TICKETRECORD = 1;
    /**
     * 从个人中心到电子券激活
     */
    public static final int TAG_PERSONAL = 2;
    /**
     * 从书架立即续订到电子书券
     */
    public static final int TAG_BOOKSHELF = 3;
    public static final String PUSHMESSAGE_BROADCAST = "com.shwread.android.pushmessage_qysw10000000";
    public static final String FIRST_TAG = "QYSW";

    /**
     * 最近阅读数据改变的广播
     */
    public static final String BOOKSHELF_DATA_CHANGE_BROADCAST = "com.shwread.android.datachange";
    /**
     * 数据改变-添加
     */
    public static final int ADD = 0;
    /**
     * 数据改变-删除
     */
    public static final int DELETE = 1;
    /**
     * 数据改变-将服务端最近数据更新同步到数据库时
     */
    public static final int UPDATE_SYNC = 2;
    /**
     * 数据改变-数据更新
     */
    public static final int UPDATE_NO_SYNC = 3;

    /***
     * 区分从哪个页面跳转到图集详情页
     */
    public final static int TAG_FROM_ENTERPRISE = 0;
    public final static int TAG_FROM_ATLAS = 1;

    /******
     * 评论的内容类型 和值
     ******/
    public final static String COMMENT_TARGET_TYPE = "targetType";
    public final static String COMMENT_TARGET_VALUE = "targetValue";

    public final static String ABOUT_HELP_URL = "http://42.121.255.86/qyyd/app/kefu/faq.html";

    /******** 电商平台 start ***********/

    /********
     * 区分从哪个页面跳转到商品列表
     *******/

    public final static int ECOMMERCE_TAG_FROM_SORT = 0;
    public final static String ECOMMERCE_SORT_TYPE = "itemId";
    public final static String ECOMMERCE_SORT_NAME = "itemName";

    /*********
     * 编辑收货地址信息
     *************/

    public static final String EDIT_ADDRESS_FROM_TYPE = "fromType";
    public static final String EDIT_ADDRESS_FROM_CONFIEM_ORDER = "fromTypeC";
    public static final String EDIT_ADDRESS_UPDATEINFO = "updateInfo";
    public static final int EDIT_ADDRESS_ADD_TAG = 0;
    public static final int EDIT_ADDRESS_UPDATE_TAG = 1;
    public static final int EDIT_ADDRESS_DEFAULT_ADD_TAG = 2;
    public static final String EDIT_ADDRESS_COUNT = "count";
    public static final String EDIT_ADDRESS_ADD_OK = "addOk";
    public static final int EDIT_ADDRESS_ADD_OK_N = 10;
    public static final int EDIT_ADDRESS_ADD_OK_RESULT = 11;
    public static final int EDIT_ADDRESS_NO_ADDRESS_REQ_CODE = 5;
    public static final int EDIT_ADDRESS_NO_ADDRESS_ORDER = 6;
    public static final int EDIT_ADDRESS_HAVE_NO_ADDRESS = 2;

    /**********
     * 从哪个页面跳转到商品详情页
     ************/
    public static final String WAP_FROM_TYPE = "fromType";
    public static final int WAP_TAG_FROM_BANNER_SINGLE = 1;                                             // banner 单个商品
    public static final int WAP_TAG_FROM_BANNER_LIST = 2;                                             // banner 多个商品
    public static final int WAP_TAG_FROM_RECOMMEND = 3;                                             // 热门活动
    public static final int WAP_TAG_FROM_ALL_BUY = 4;                                             // 大家都在买

    public static final String GOODS_BASE_URL_TO_WAP = "goodsBaseUrl";
    public static final String GOODS_DETAIL_URL_TO_WAP = "goodsDetailUrl";
    public static final String GOODS_ID_TO_WAP = "goodsId";
    public static final String GOODS_ACTIVITY_PRICE_TO_WAP = "activityPrice";
    public static final String GOODS_FREE_MONEY_TO_WAP = "freeMoney";                                   // 优惠多少钱
    // 用来减去
    public static final String GOODS_ACTIVITY_PRICE_ID = "activityId";                                  // 活动ID

    /********* 订单详情状态 *************/

    /**
     * 下单未付款
     **/
    public static final int ORDER_DETAIL_STATE_UNPAY = 0;
    /**
     * 付款成功（待发货）
     **/
    public static final int ORDER_DETAIL_STATE_UNDELIVER = 1;
    /**
     * 已发货（待收获）
     **/
    public static final int ORDER_DETAIL_STATE_DEKIVERING = 2;
    /**
     * 待评价
     **/
    public static final int ORDER_DETAIL_STATE_UNCOMMENT = 3;
    /**
     * 交易完成
     **/
    public static final int ORDER_DETAIL_STATE_FINISHED = 4;
    /**
     * 交易取消
     **/
    public static final int ORDER_DETAIL_STATE_CLOSE = 5;
    /**
     * 所有交易
     **/
    public static final int ORDER_DETAIL_STATE_ALL = 6;

    /**
     * 全天
     **/
    public static final int ORDER_DETAIL_DELIVER_ALLDAY = 1;
    /**
     * 工作日
     **/
    public static final int ORDER_DETAIL_DELIVER_WORKDAY = 2;
    /**
     * 假日
     **/
    public static final int ORDER_DETAIL_DELIVER_HOLIDAY = 3;

    public static final String REMARK = "remark";

    public static final String ADDRESS_LIST = "addressList";

    public static final String ORDER_DETAIL_FROM_TYPE = "fromType";
    public static final String ORDER_DETAIL_ORDER_ID = "orderId";
    public static final String ORDER_DETAIL_ORDER_SERIAL = "orderSerial";
    public static final String ORDER_DETAIL_ORDER_PAY_MONEY = "orderPayMoney";
    public static final String ORDER_DETAIL_ORDER_ORDER_TITLE = "orderTitle";
    public static final String ORDER_DETAIL_ORDER_ORDER_INTRO = "orderIntro";

    public static final String CONFIRM_ORDER_FROM_GOODS_MAIN = "goodsMain";
    public static final String CONFIRM_ORDER_FROM_SHOPPING_CART = "shoppingCart";

    public static final String CONFIRM_ORDER_GOODS = "goodsInfo";
    /****************
     * 支付宝支付结果
     ***********************/
    public static final int ALI_PAY_PAY_RESULT_FLAG = 0;
    public static final int ALI_PAY_CHECK_RESULT_FLAG = 1;

    /*****************
     * 支付总金额
     *************/
    public static final String ALI_PAY_TOTAL_MONEY = "total_money";

    /*****************
     * 互动中心
     *************/
    public static final String NI_ATLASSEE_URL = "Urls";
    public static final String NI_POSITION = "position";
    public static final String INTERACTIONINFO = "interactioninfo";
    public static final int NI_FROM_WEBURL = 5;
    public static final int NI_FROM_LOCALURL = 6;

    public static final String NI_CONTACT_INTENT = "toDo";
    /**
     * 创建群
     **/
    public static final String NI_CONTACT_CREATE_TEAM = "createTeam";
    /**
     * 选择用户
     **/
    public static final String NI_CONTACT_CHOSE_MUNBER = "choseMumber";
    /**
     * @群成员
     **/
    public static final String NI_CONTACT_GET_MEMBER = "getMember";
    /**
     * 转发
     **/
    public static final String NI_CONTACT_FORWARD = "forward";

    public static final String TEAM_ID_LIST = "teamIdList";
    public static final String TEAM_ID = "teamId";
    public static final String TEAM_NAME = "teamName";
    public static final String TEAM_STAFFNAME = "staffName";
    public static final String TEAM_NICKNAME = "nickName";
    public static final String TEAM_ACCOUNT = "account";
    /**
     * 跳转到p2p聊天页面的类型
     ***/
    public static final String TO_P2P_PAGE_TAG = "top2ppagetag";
    public static final int TO_P2P_PAGE_FROM_TEAM_INFO = 0;
    public static final int TO_P2P_PAGE_FROM_TEAM_MSG = 1;
    public static final int TO_P2P_PAGE_FROM_CONTACT_MANGER = 1;
    /**
     * 跳转到p2p聊天页面的数据
     ***/
    public static final String TO_P2P_PAGE_INFO = "top2ppageinfo";

    /***
     * 我的预约请求成功
     ****/
    public static final int MY_APPOINTMENT_SUCCESS = 0;
    /***
     * 我的预约请求成功
     ****/
    public static final int MY_APPOINTMENT_FAIL = 1;
}
